import { IsInt, IsString, IsOptional } from 'class-validator';


export class UserAccountLoginDto {
  @IsString()
  readonly phone: string;
}

export class UserAccountPhoneDto {
  @IsString()
  readonly phone: string;
  @IsString()
  readonly code: string;
  @IsString()
  @IsOptional()
  readonly wechatMiniProgramCode?: string;
}

export class UserAccountWechatDto {
  @IsString()
  readonly code: string;
}

export class UserAccountAppleDto {
  @IsString()
  readonly code: string;
}


export class UserProfileDto {
  @IsString()
  readonly diaryId: string;

  @IsString()
  readonly diary: string;

  @IsString()
  readonly content: string;
}

